{% extends "hedy-page/level-page.html" %}
{% block levelbody %}
<div tabindex="0">
    {# When we're NOT in adventure mode but DO have adventures, render them in tabs #}
    {% if raw %}
        {% if get_syntax_language(g.lang) != "en" and (not customizations or 'hide_keyword_switcher' not in customizations['other_settings']) %}
        <div class="flex justify-end mb-4">
            {{ render_partial('htmx-language-switch-button.html', lang_switch_table=lang_switch_table) }}
        </div>
        {% endif %}
    {% else %}
        {% include "hedy-page/adventure-tabs.html" %}
    {% endif %}
        {% include "hedy-page/editor-and-output.html" %}
    {% if latest and not raw %}
      <div class="text-sm mt-10 ltr:mr-5 rtl:ml-5 font-extralight">
      Latest update: {{latest}}
      </div>
    {% endif %}
</div>
{% endblock %}
